package cn.wolfcode.p2p.business.service;

import cn.wolfcode.p2p.base.query.QueryObject;
import cn.wolfcode.p2p.business.domain.CreditTransfer;
import cn.wolfcode.p2p.business.query.CreditTransferQuery;
import com.github.pagehelper.PageInfo;

/**
 * 债权相关
 */
public interface ICreditTransferService {
    /**
     * 可以转让债权相关的分页列表
     *
     * @param qo
     * @return
     */
    PageInfo queryCanCreditTransfer(QueryObject qo);

    /**
     * 选择转让
     * @param bidIds
     */
    void creditTransfer(Long[] bidIds);

    /**
     * 根据收款计划查询转让中的打包的债权标
     * @param bidId :投标id
     * @param toLoginInfoId :收款人
     * @param bidrequestState :债权状态
     */
    CreditTransfer getByBidIdAndTransferFromIdAndState(Long bidId, Long toLoginInfoId, int bidrequestState);

    /**
     *
     * @param transfer
     */
    void update(CreditTransfer transfer);
}
